# Compiler
CC=g++

# General options
OPT_DEBUG=-g
OPT_WARNING=-Wall

# Dirs
DIR_LIBAV=-L../externs/ext_lib/

# Libraries to include
LIB_OPENGL=-lGLU -lglut -lGL
LIB_AV=-lavformat -lavcodec -lavutil -lswscale -lavfilter
LIB_DC1394=-ldc1394 -lraw1394
LIB_JPEG=-ljpeg


all: cvvideo_vfile.o
	$(CC) $(LIB_OPENGL) -lz cvvideo_vfile.o cvgui.cpp  -o cvgui $(DIR_LIBAV) $(LIB_AV)

cvvideo_vfile.o:
	$(CC) -c ../src/indev/cvvideo/cvvideo_vfile.cpp

clear:
	rm -rf *.o cvgui
